import {Pipe, PipeTransform} from '@angular/core';
import {CommonTool} from '../common.tool';
import {environment} from '../../../environments/environment';

@Pipe({
  name: 'i18n'
})
export class SystemI18nPipe implements PipeTransform {

  constructor() {
  }

  transform(value: any, type: any): any {
    const data = '';
    // this.commonTool.getObjectField(environment.i18n, type);
    if (CommonTool.notNull(data)) {
      return data;
    } else {
      return value;
    }

  }
}

